#ifndef ALERTRECORD_H
#define ALERTRECORD_H

#include <QWidget>
#include "../MainProject/sqlitedatabase.h"
#include <QSqlTableModel>
#include <QDateEdit>
#include <QTimer>
#include "../MainProject/loggermanager.h"
namespace Ui {
class AlertRecord;
}

class AlertRecord : public QWidget
{
    Q_OBJECT

public:
    explicit AlertRecord(QWidget *parent = nullptr);
    ~AlertRecord();

public slots:
    void onSelectRecords();
    void onResetSelect();
    void onRefreshRecord();

private:
    void setupModel();
    void setupConnections();

private:
    Ui::AlertRecord *ui;
    QSqlTableModel *model;
    QDateEdit *startDateEdit;
    QDateEdit *endDateEdit;
    QTimer *refreshRecordTimer;
};

#endif // ALERTRECORD_H
